Reference for Wiring version 0027+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

makeWord()

Examples
// word (16 bit or two bytes) variable
unsigned int x; 
// x is set to 0x03FF or 1023 in decimal
x = makeWord(0x03, 0xFF);
Description A word is a variable made of 16 bits (or 2 bytes). The makeWord command returns the word value resulting of setting the given high and low bytes.
Syntax
makeWord(highByte, lowByte)
Parameters
highByte byte: the higher byte value
lowByte byte: the lower byte value
Returns unsigned int: the word value resulting of setting the given high and low bytes
Usage Application
Related bit()
bitRead()
bitWrite()
highByte()
lowByte()
Updated on September 17, 2010 01:10:34pm PDT

Creative Commons License